const path = require('path');
module.exports = {
  entry: './src/index.js',
  devtool: 'source-map',
  mode: 'development',
  output: {
    filename: 'bundle.js',
    path: path.resolve(__dirname, './build'),
    clean: true
  },
  module: {
    rules: [
      {
        test: /\.(m|e)?js$/,
        use: [
          {
            loader: 'babel-loader',
          }
        ]
      }
    ]
  }
};
